package 作业1024.作业06;

public class Pet {
    private String name;
    private String strain;
    private int tizhong;

    public Pet() {
    }

    public Pet(String name, String strain, int tizhong) {
        this.name = name;
        this.strain = strain;
        this.tizhong = tizhong;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStrain() {
        return strain;
    }

    public void setStrain(String strain) {
        this.strain = strain;
    }

    public int getTizhong() {
        return tizhong;
    }

    public void setTizhong(int tizhong) {
        this.tizhong = tizhong;
    }
    public void show(){
        System.out.println("我的名字叫："+name+"品种："+strain+"体重："+tizhong);
    }
    public void eat(){
        System.out.println("吃东西");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
}
